#pragma once
#include "gdiplus.h"
using namespace Gdiplus;

class CFeatureExtract
{
protected:
	void CString2Char(CString& s, char arr[])
	{
		size_t tmp;
		wcstombs_s(&tmp, arr, MAX_PATH * sizeof(char),
			s.GetBuffer(), MAX_PATH*sizeof(char));
		s.ReleaseBuffer();
	}

public:
	virtual BOOL Calc(CString& sPath, OUT CArray<double>& arrFeature) = 0;
	virtual BOOL Calc(Bitmap* bmp, OUT CArray<double>& arrFeature) = 0;
};